package com.itheima.config;

import org.springframework.context.annotation.*;
import org.springframework.stereotype.Controller;

@Configuration
//扫描
@ComponentScan(value = "com.itheima",excludeFilters = @ComponentScan.Filter(
        type = FilterType.ANNOTATION,
        value = {Configuration.class, Controller.class}
))
//1.整合 jdbc配置文件
@PropertySource("classpath:jdbc.properties")
//2.整合数据源 druid  3.Mybatis
@Import({JdbcConfig.class,MybatisConfig.class})
//4.整合SpringMVC
//      ServletConfig  extends AbstractAnnotationConfigDispatcherServletInitializer
//      SpringMvcConfig  @configuration  扫描"com.itheima.controller"  开启辅助功能

//整合事务 开启事务  JdbcConfig->

public class SpringConfig {
}
